package com.example.toy.core.record.key.generator;

import org.apache.avro.Schema;

import java.util.List;

/**
 * KeyGenerator
 *
 * @author shenbing
 * @date 2021/12/24
 */
public interface KeyGenerator {

    String generate(Schema schema, Object... params);

  List<Object> fromKey(Schema schema, String key);
}
